// 一些小功能
export function isEmpty(obj) {
	// 判断数组和对象是否为空
	let mark = Object.prototype.toString.call(obj);
	if (mark=='[object Array]'||mark=='[object Object]') {
		return Object.keys(obj).length <= 0;
	} else {
		return true;
		//throw 'expect to get an array or object, but not!'
	}
}

export default {
	isEmpty
}
